package work.chenbo.springboot.mongo.dao.mongo;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import work.chenbo.springboot.mongo.entity.User;

/**
 * @author ChenBo
 * @className UserMongoRepository
 * @date 2020/11/20
 */
public interface UserMongoRepository extends MongoRepository<User,Integer> {

    /**
     * 根据用户名查询
     * @author ChenBo
     * @date 2020/11/20
     */
    User findByUsername(String username);
}
